package com.cn.pojo.vo;

import com.cn.pojo.TbHotel;

import java.util.Date;

public class TbHotelVo extends TbHotel {

    /**
     * 酒店id
     */
    private Long id;
    /**
     * 酒店名称
     */
    private String name;
    /**
     * 酒店地址
     */
    private String address;
    /**
     * 酒店价格
     */
    private Integer price;
    /**
     * 酒店评分
     */
    private Integer score;
    /**
     * 酒店品牌
     */
    private String brand;
    /**
     * 所在城市
     */
    private String city;
    /**
     * 酒店星级，1星到5星，1钻到5钻
     */
    private String starName;
    /**
     * 商圈
     */
    private String business;
    /**
     * 纬度
     */
    private String latitude;
    /**
     * 经度
     */
    private String longitude;
    /**
     * 酒店图片
     */
    private String pic;
    /**
     * 经纬度
     * @return
     */
    private String location;

    public TbHotelVo(TbHotel tbHotel) {
        this.id = tbHotel.getId();
        this.name = tbHotel.getName();
        this.address = tbHotel.getAddress();
        this.price = tbHotel.getPrice();
        this.score = tbHotel.getScore();
        this.brand = tbHotel.getBrand();
        this.city = tbHotel.getCity();
        this.starName = tbHotel.getStarName();
        this.business = tbHotel.getBusiness();
        this.location = tbHotel.getLatitude() + ", " + tbHotel.getLongitude();
        this.pic = tbHotel.getPic();
    }


    public TbHotelVo() {
    }

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }


    @Override
    public String getAddress() {
        return address;
    }

    @Override
    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public Integer getPrice() {
        return price;
    }

    @Override
    public void setPrice(Integer price) {
        this.price = price;
    }

    @Override
    public Integer getScore() {
        return score;
    }

    @Override
    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String getBrand() {
        return brand;
    }

    @Override
    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Override
    public String getCity() {
        return city;
    }

    @Override
    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String getStarName() {
        return starName;
    }

    @Override
    public void setStarName(String starName) {
        this.starName = starName;
    }

    @Override
    public String getBusiness() {
        return business;
    }

    @Override
    public void setBusiness(String business) {
        this.business = business;
    }

    @Override
    public String getLatitude() {
        return latitude;
    }

    @Override
    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    @Override
    public String getLongitude() {
        return longitude;
    }

    @Override
    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    @Override
    public String getPic() {
        return pic;
    }

    @Override
    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public void setLonAndLat(String lonAndLat) {
        this.location = lonAndLat;
    }

    public String getLonAndLat() {
        return location;
    }

    public void setLonAndLat() {
        this.location = this.getLongitude()+","+this.getLatitude();
    }

}
